﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.SystemManager.ApplyGather;
using SystemCenterSoa.IRepository.SystemManager.ApplyGather;
using SystemCenterSoa.PoModel.SystemManager.ApplyGather;

namespace SystemCenterSoa.Service.SystemManager.ApplyGather
{
    public class CompanyActivitiesApplyService
    {
        private ICompanyActivitiesApplyRepository _companyActivitiesApplyRepository;

        public CompanyActivitiesApplyService(ICompanyActivitiesApplyRepository companyActivitiesApplyRepository)
        {
            _companyActivitiesApplyRepository = companyActivitiesApplyRepository;
        }
        public bool GetCompanyActivitiesApplyAdd(CompanyActivitiesApplyPo companyActivitiesApply)
        {
            return _companyActivitiesApplyRepository.GetCompanyActivitiesApplyAdd(companyActivitiesApply);
        }
        public List<CompanyActivitiesApplyDto> GetCompanyActivitiesApplyList(int deId, string nian, string yue, int pageIndex, int pageSize)
        {
            return _companyActivitiesApplyRepository.GetCompanyActivitiesApplyList(deId, nian, yue, pageIndex, pageSize);
        }
        public CompanyActivitiesApplyPo GetCompanyActivitiesApplyFan(int id)
        {
            return _companyActivitiesApplyRepository.GetCompanyActivitiesApplyFan(id);
        }
        public bool GetCompanyActivitiesApplyUpdate(CompanyActivitiesApplyPo companyActivitiesApply)
        {
            return _companyActivitiesApplyRepository.GetCompanyActivitiesApplyUpdate(companyActivitiesApply);
        }
        public bool GetCompanyActivitiesApplyDel(string ids)
        {
            return _companyActivitiesApplyRepository.GetCompanyActivitiesApplyDel(ids);
        }
    }
}
